<template>
  <view class="content">
    <image class="logo" src="/static/logo.webp" />
    <view class="text-area">
      <text class="title">{{ title }}</text>
    </view>
  </view>
</template>

<script setup lang="ts">
import {onMounted, ref} from 'vue'
const title = ref('益智小游戏')
// 两秒自动跳转
onMounted(() => {
  setTimeout(() => {
    uni.redirectTo({
      url: "../doteam/doteam",
      success: function (a) {
        // 跳转成功的回调
        console.log('success', a)
      },
      fail: function (a) {
        // 跳转失败的回调
        console.log('err', a)
      }
    });
  }, 1000)
})
</script>

<style>
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 300rpx;
  width: 300rpx;
  margin-top: 200rpx;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50rpx;
}

.text-area {
  display: flex;
  justify-content: center;
}

.title {
  font-size: 50rpx;
  color: #8f8f94;
}
</style>
